package cn.js.ccit.flowersmall.product.service.Impl;

import cn.js.ccit.flowersmall.product.entity.ProductEntity;
import cn.js.ccit.flowersmall.product.mapper.ProductMapper;
import cn.js.ccit.flowersmall.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    ProductMapper mapper;

    @Override
    public List<ProductEntity> findProducts() {
        return mapper.findProducts();
    }

    @Override
    public ProductEntity getProductById(Long id) {
        return mapper.getProductById(id);
    }
}
